<!DOCTYPE html>
<html lang="cn" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>互联网村镇管理平台</title>
    <link rel="stylesheet" type="text/css" th:href="@{/css/common.css}" />
    <link rel="stylesheet" type="text/css" th:href="@{/css/main.css}" />
</head>
<body>
    <div class="container clearfix">
        <!--/sidebar-->
        <div class="main-wrap">
            <div class="crumb-wrap">
                <div class="crumb-list">
                    <i class="icon-font">&#xe9b9;</i>
                    <a href="javascript:void(0);">信息管理</a>
                    <span class="crumb-step">&gt;</span>
                    <span class="crumb-name">用户反馈</span>
                </div>
            </div>
            <div class="search-wrap">
                <div class="search-content">
                    <form th:action="@{/suggestion/list}" method="post" id="queryForm">
                        <table class="search-tab" style="margin-left: 10px;">
                            <tr>
                                <th width="70">反馈标题:</th>
                                <td>
                                    <input class="common-text" placeholder="反馈标题" name="title" th:value="${title }" type="text" />
                                </td>
                                <th width="70">反馈内容:</th>
                                <td>
                                    <input class="common-text" placeholder="反馈内容" name="content" th:value="${content }" type="text" />
                                </td>
                                <td>
                                    <input class="btn btn-primary btn2" name="sub" value="查询" type="submit">
                                </td>
                            </tr>
                        </table>
                    </form>
                </div>
            </div>
            <div class="result-wrap">
                <div class="result-title">
                    <div class="result-list">
                        <a id="batchDel" href="javascript:batchDeleteSuggestion();"><i class="icon-font">&#xe9ac;</i>批量删除</a>
                    </div>
                </div>
                <div class="result-content">
                    <table class="result-tab" width="100%">
                        <tr>
                            <th class="tc" width="5%"><input class="allChoose" onclick="javascript:shiro.form.setCheckBoxSelectToggle('suggestionIdCheckBox');" type="checkbox" /></th>
                            <th width="15%">反馈标题</th>
                            <th width="15%">反馈内容</th>
                            <th width="10%">反馈人姓名</th>
                            <th width="15%">反馈人电话</th>
                            <th width="15%">反馈人邮箱</th>
                            <th width="15%">反馈时间</th>
                            <th class="tc" width="10%">操作</th>
                        </tr>
                        <tr th:each="suggestion:${suggestionList}">
                            <td class="tc">
                                <input name="suggestionIdCheckBox" th:value="${suggestion?.suggestionId }" type="checkbox">
                            </td>
                            <td th:text="${suggestion?.title }"></td>
                            <td th:text="${suggestion?.content }"></td>
                            <td th:text="${suggestion?.publishUserName }"></td>
                            <td th:text="${suggestion?.telphone }"></td>
                            <td th:text="${suggestion?.email }"></td>
                            <td th:text="${#dates.format(suggestion?.createTime,'yyyy-MM-dd HH:mm:ss')}"></td>
                            <td class="tc">
                                <a class="link-update" title="查看" th:href="'javascript:viewSuggestion(\'' + ${suggestion?.suggestionId } + '\');'"><i class="icon-font">&#xe9ce;</i></a>
                                <a class="link-del" title="删除" th:href="'javascript:deleteSuggestion(\'' + ${suggestion?.suggestionId } + '\');'">删除</a>
                            </td>
                        </tr>
                        </c:forEach>
                    </table>

                    <div class="list-page" th:utext="${pageHtml}"></div>
                </div>
                </div>
            </div>
        </div>
        <!--/main-->

    <div th:include="admin/common/common"></div>
    <script type="text/javascript" th:src="@{/js/web/suggestion/suggestionInfo.js?v=1.1}"></script>
</body>
</html>